#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,i;
	double m,sum=0;
	cin>>m>>n;
	sum+=m;
	for(i=1;i<=n;i++)
	{
		m=m/2;
		sum=i!=m?sum+2*m:sum;
	}
	printf("%.2f %.2f",m,sum-m-m);
    return 0;
}
